package com.missilike.core.config;

import com.missilike.core.domain.GoodsProperties;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: starmile
 * @Description:
 * @Create: 2019-01-02 23:02
 **/
@Slf4j
@Configuration
public class GoodsConfig {
    @Bean
    @ConfigurationProperties(prefix = "goods")
    public GoodsProperties goodsProperties(){
        return new GoodsProperties();
    }
}
